package com.cq.hd.product.service.impl;

import com.cq.hd.product.api.dto.ActiveShareStatisticsDto;
import com.cq.hd.product.api.vo.ActiveAgentShareCountVo;
import com.cq.hd.product.api.vo.ActiveShareRecordVo;
import com.cq.hd.product.api.vo.ActiveShareStatisticsVo;
import com.cq.hd.product.po.TbActiveSharePo;
import com.cq.hd.product.mapper.TbActiveShareMapper;
import com.cq.hd.product.service.TbActiveShareService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 活动分享记录表 服务实现类
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-23
 */
@Service
public class TbActiveShareServiceImpl extends ServiceImpl<TbActiveShareMapper, TbActiveSharePo> implements TbActiveShareService {

    @Override
    public ActiveShareRecordVo getByCode(String code, Long activeId) {
        return baseMapper.getByCode(code, activeId);
    }

    @Override
    public List<ActiveShareStatisticsVo> listByDto(ActiveShareStatisticsDto activeShareStatisticsDto) {
        return baseMapper.listByDto(activeShareStatisticsDto);
    }

    @Override
    public List<ActiveAgentShareCountVo> getAgentShareCountByActiveIds(List<Long> activeIds) {
        return baseMapper.getAgentShareCountByActiveIds(activeIds);
    }
}
